<template>
  <div>
    <div class="productCateBody">
      <el-table :data="product_attr" border style="width: 100%">
        <el-table-column prop="id" :label="title[0]"> </el-table-column>
        <el-table-column prop="name" :label="title[1]"> </el-table-column>
        <el-table-column label="级别">
          <template slot-scope="scope">
            {{ scope.row.level | levelStr }}
          </template>
        </el-table-column>
        <el-table-column prop="product_count" label="商品数量">
        </el-table-column>
        <el-table-column prop="product_unit" label="数量单位">
        </el-table-column>
        <el-table-column label="是否显示">
          <template slot-scope="scope">
            <el-switch
              :value="scope.row.show_status | show_statusStr"
              active-color="#409eff"
              inactive-color="#dcdfe6"
            >
            </el-switch>
          </template>
        </el-table-column>
        <el-table-column prop="sort" label="排序"> </el-table-column>
        <el-table-column label="设置">
          <template slot-scope="scope">
            <div class="tableBtn">
              <el-button
                @click="xiaji(scope.row.id)"
                class="down"
                type="primary"
                :disabled="nextFlage"
                >查看下级</el-button
              >
            </div>
          </template>
        </el-table-column>
        <el-table-column label="操作">
          <template>
            <div class="tableBtn">
              <el-button class="updata" type="primary">编辑</el-button>
              <el-button class="delete" type="danger">删除</el-button>
            </div>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <div class="block">
      <el-pagination
        :current-page="listQuery.pageNum"
        @current-change="handleCurrentChange"
        layout="total,sizes,prev, pager, next"
        :page-sizes="[5, 10, 15, 20]"
        :page-size="listQuery.pageSize"
        @size-change="handleSizeChange"
        :total="total"
      >
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
	name:"table1",
	
};
</script>

<style>
</style>